/**
*资源分类管理
*/
import request from '@/utils/request'
// 列表
export function fetchList(query) {
  return request({
    url: '/admin/articleCategory/search',
    method: 'post',
    data: query
  })
}
// 添加
export function add(params) {
  return request({
    url: '/admin/articleCategory/add',
    method: 'post',
    data: params
  })
}
// 获取当前行信息
export function rows(ids) {
  return request({
    url: '/admin/articleCategory/edit',
    method: 'get',
    params: {
      id: ids
    }
  })
}
// 编辑
export function edit(id, pid, name, status, rules) {
  return request({
    url: '/admin/articleCategory/edit',
    method: 'post',
    data: { id, pid, name, status, rules
    }
  })
}

// 删除
export function del(ids) {
  return request({
    url: '/admin/articleCategory/del',
    method: 'post',
    data: {
      ids
    }
  })
}
